/*
 * @# SmsNotificationServiceImpl.java 2011-11-21 上午10:31:32
 * 
 * Copyright (C) 2010 - 2011 广州羿安信息科技有限公司
 * Guangzhou ianswer information technology co. ltd.
 * 
 * All rights reserved!
 */
package com.ianswer.experiments.ws.sms.impl;

import javax.jws.WebService;

import org.apache.commons.lang.builder.ToStringBuilder;

import com.sun.istack.logging.Logger;

import com.ianswer.common.sms.ct.si.NotifyArrival;
import com.ianswer.common.sms.ct.si.NotifyArrivalResponse;
import com.ianswer.common.sms.ct.si.NotifyState;
import com.ianswer.common.sms.ct.si.NotifyStateResponse;
import com.ianswer.common.sms.ct.si.RevHeader;
import com.ianswer.common.sms.ct.si.SmsNotification;
import com.ianswer.common.util.CtConstants.SMS;

/**
 * @author alvin hwang
 */
@WebService(name = SMS.SI_NOTIFICATION_NAME, 
		portName = SMS.SI_NOTIFICATION_PORT_NAME, 
		endpointInterface = SMS.SI_NOTIFICATION_ENDPOINT,
		targetNamespace = SMS.SI_TARGET_NAMESPACE)
public class SmsNotificationServiceImpl implements SmsNotification {

	private static Logger log = Logger.getLogger(SmsNotificationServiceImpl.class);

	@Override
	public NotifyStateResponse notifyState(NotifyState parameters, RevHeader revHeader) {
		log.info("NotifyState : " + ToStringBuilder.reflectionToString(parameters) + " RevHeader : "
				+ ToStringBuilder.reflectionToString(revHeader));
		return new NotifyStateResponse();
	}

	@Override
	public NotifyArrivalResponse notifyArrival(NotifyArrival parameters, RevHeader revHeader) {
		log.info("NotifyArrival : " + ToStringBuilder.reflectionToString(parameters) + " RevHeader : "
				+ ToStringBuilder.reflectionToString(revHeader));
		return new NotifyArrivalResponse();
	}

}
